#ifndef AUDIOREC_H
#define AUDIOREC_H

#include <QObject>
#include <QDebug>
#include <QProcess>


class AudioRec : public QObject
{
	Q_OBJECT
public:
	AudioRec();
	virtual ~AudioRec();
signals:
	void RecordFinished();
	void EncodageFinished();
public slots:
	void StartRecord();
	void StopRecord();
	void StartEnc();
	void SetTitle(QString newTitle);
	void SetArtist(QString newArtist);
	void SetAlbum(QString newAlbum);
private slots:
	void RecordStoped(int exitCode, QProcess::ExitStatus exitStatus);
	void EncFinished();
private:
	QString Title;
	QString Artist;
	QString Album;
	QProcess Arecord;
};
#endif